package com.zy.demo;

import java.sql.Time;
import java.util.concurrent.TimeUnit;

public class Test1 {
    public static void main(String[] args) throws InterruptedException {
        //获取cpu的核数
        //cpu 密集型 IO密集型
        System.out.println(Runtime.getRuntime().availableProcessors());
        Thread thread = new Thread();
        thread.wait();
    }
}
